import request from "./http"

// 获取个人信息
// /user/detail?uid=32953014
export function getUserDetail(params){
    return request({
        url:"/user/detail",
        method:"get",
        params
    })
}

// /user/subcount用户信息 , 歌单，收藏，mv, dj 数量
export function getSubCount(){
    return request({
        url:"/user/subcount",
        method:"get"
    })
}

// 获取用户歌单
// /user/playlist?uid=32953014
export function getUserPlayList({uid}){
    return request({
        url:"/user/playlist",
        method:"get",
        params:{
            uid,
            limit:10
        }
    })
}

// 歌单详情
// /playlist/detail?id=2382196004
export function getPlaylistDetail(params){
    return request({
        url:"/playlist/detail",
        method:"get",
        params
    })
}

// 播放历史
// /user/record?uid=32953014&type=1
export function getUserRecord(params){
    return request({
        url:"/user/record",
        method:"get",
        params
    })
}

// 用户关注
// /user/follows?uid=32953014
export function getUserfollows(params){
    return request({
        url:"/user/follows",
        method:"get",
        params
    })
}

// 用户粉丝列表
// /user/followeds?uid=32953014
export function getUserFolloweds(params){
    return request({
        url:"/user/followeds",
        method:"get",
        params
    })
}